import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/testjs',
  name: 'testjs',
  component: LAYOUT,
  redirect: '/charts/echarts/map',
  meta: {
    orderNo: 1,
    icon: 'ion:bar-chart-outline',
    title: t('routes.testjs.testjs'),
  },
  children: [
    {
      path: 'webSocket',
      name: 'webSocket',
      meta: {
        title: t('routes.testjs.webSocket'),
      },
      component: () => import('/@/views/testjs/websocket/index.vue'),
    } ,
    {
      path: 'signalr',
      name: 'signalr',
      meta: {
        title: t('routes.testjs.signalr'),
      },
      component: () => import('/@/views/testjs/signalr/index.vue'),
    }
  ],
};

export default charts;
